package main

import (
	"log"
	"net/http"

	"fmt"

	"message-center/router"
)

func main() {
	// Create the Gin engine.
	endPoint := fmt.Sprintf(":%d", 9090)

	routersInit := router.Load()

	server := &http.Server{
		Addr:    endPoint,
		Handler: routersInit,
	}

	log.Printf("[info] start http server listening %s", endPoint)

	server.ListenAndServe()

}
